package com.zr.daoimpl;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.OptionDao;
import com.zr.model.Cdisstation;
import com.zr.model.Cgoodstype;
import com.zr.model.Clogstate;
import com.zr.model.Costate;
import com.zr.model.Cotype;

@Repository("disnameDao")
public class OptionDaoImpl<T> extends BaseDaoImpl<T> implements OptionDao<T>{

	@Override
	public List<Cdisstation> getDisname() {
		String hql="from Cdisstation";
		Query que=this.getCurrentSession().createQuery(hql);
		List<Cdisstation> li=que.list();
		return li;
	}

	@Override
	public List<Costate> getostate() {
		String hql="from Costate";
		Query que=this.getCurrentSession().createQuery(hql);
		List<Costate> li=que.list();
		return li;
	}

	@Override
	public List<Cotype> getotype() {
		String hql="from Cotype";
		Query que=this.getCurrentSession().createQuery(hql);
		List<Cotype> li=que.list();
		return li;
	}

	@Override
	public List<Clogstate> getlogstate() {
		String hql="from Clogstate";
		Query que=this.getCurrentSession().createQuery(hql);
		List<Clogstate> li=que.list();
		return li;
	}

	@Override
	public List<Cgoodstype> getGoodstype() {
		String hql="from Cgoodstype";
		Query que=this.getCurrentSession().createQuery(hql);
		List<Cgoodstype> li=que.list();
		return li;
	}

}


